<script setup lang="ts">
import { h, render, onMounted } from 'vue'
// 获取组件配置项
import XtxMessage from '@/components/message/message.vue'
// 创建虚拟dom节点
const vNode = h(XtxMessage, { type: 'error' }, '登录异常啦啦啦')
onMounted(() => {
  // 渲染
  render(vNode, document.querySelector('.box')!)
})
// 期待的结果
// Message({type: 'warning', text: '登录失败'})
// Message.success('登录成功')
const login = () => {
}
</script>

<template>
  <div class="box">
    <!-- <XtxMessage type="warning">登录异常</XtxMessage> -->
  </div>
</template>

<style scoped lang="less">
</style>